package com.kgc.service.base.exception;


import com.kgc.common.result.ResultCode;
import lombok.Data;

@Data
public class HpitException extends RuntimeException{
    private Integer code;
    public HpitException(String message,Integer code){
        super(message);
        this.code=code;
    }
    public HpitException(ResultCode resultCode){
        super(resultCode.getMessage());
        this.code=resultCode.getCode();
    }
}
